<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%@include file="common.jsp" %>
<!-- 内容区域 -->
<div class="tpl-content-wrapper">
	<div class="row-content am-cf">
		<div class="row">
			<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
				<div class="widget am-cf">
					<div class="widget-head am-cf">
						<div class="widget-title am-fl">上架商品</div>
						<div class="widget-function am-fr">
							<a href="${pageContext.request.contextPath}/seller/toStart.shtml">
								<span class="am-icon-sign-out"></span>返回查询商品
							</a>
						</div>
					</div>
					<div class="widget-body am-fr">
						<form class="am-form tpl-form-border-form tpl-form-border-br" action="${pageContext.request.contextPath}/seller/addgoods.shtml"  
						enctype="multipart/form-data" Method="post">
							<div class="am-form-group">
								<label for="user-name" class="am-u-sm-3 am-form-label">商品标题
									<span class="tpl-form-line-small-title"></span>
								</label>
								<div class="am-u-sm-9">
									<input type="text" class="tpl-form-input" id="goodsName" name="goodsName" 
										placeholder="请输入标题文字"> <small>请填写标题文字10-20字左右。</small>
								</div>
							</div>
							<div class="am-form-group">
								<label for="user-name" class="am-u-sm-3 am-form-label" >原价
									<span class="tpl-form-line-small-title"></span>
								</label>
								<div class="am-u-sm-9">
									<input type="text" class="tpl-form-input" id="orgPrice" name="orgPrice"
										placeholder="请输入原价,单位:元">
								</div>
							</div>
							<div class="am-form-group">
								<label for="user-name" class="am-u-sm-3 am-form-label" >促销价
									<span class="tpl-form-line-small-title"></span>
								</label>
								<div class="am-u-sm-9">
									<input type="text" class="tpl-form-input" id="discountPrice" name="discountPrice"
										placeholder="请请输入促销价,单位:元">
								</div>
							</div>
							<div class="am-form-group">
								<label for="user-phone" class="am-u-sm-3 am-form-label" name="goodsType">商品分类
									<span class="tpl-form-line-small-title"></span>
								</label>
								<div class="am-u-sm-9">
									<select  name="goodsType" data-am-selected="{searchBox: 1}"
										style="display: none;">
										 <c:forEach items="${GoodsTypeVo}" var="item">
											  <c:forEach items="${item.subList}" var="var">
											  	<c:forEach items="${var.subList}" var="type">						
											 		<option  value="${type.id}">${type.name}</option>
												 </c:forEach>  
											 </c:forEach>  
										 </c:forEach>  
									</select>
								</div>
							</div>

							<div class="am-form-group">
								<label for="user-weibo" class="am-u-sm-3 am-form-label">商品图
									<span class="tpl-form-line-small-title"></span>
								</label>
								<div class="am-u-sm-9">
									<div class="am-form-group am-form-file">
										<button type="button" class="am-btn am-btn-danger am-btn-sm">
											<i class="am-icon-cloud-upload"></i> 添加封面图片
										</button>
										<input  type="file" name="tyty" >
									</div>

								</div>
							</div>
							<div class="am-form-group">
								<div class="am-u-sm-9 am-u-sm-push-3">
									<input type="submit"
										class="am-btn am-btn-primary tpl-btn-bg-color-success "></br> ${addgoodsresult}
								</div>
								
							</div>
							
						</form>
						
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
</div>

</div>
<script
	src="${pageContext.request.contextPath}/assets/js/amazeui.min.js"></script>
<script
	src="${pageContext.request.contextPath}/assets/js/amazeui.datatables.min.js"></script>
<script
	src="${pageContext.request.contextPath}/assets/js/dataTables.responsive.min.js"></script>
<script src="${pageContext.request.contextPath}/assets/js/app.js"></script>

</body>

</html>